package com.zb.spring5.aop.dynamic;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class SimpleAdvice implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {

        System.out.println(">> 调用 "+ methodInvocation.getMethod().getName());
        Object proceed = methodInvocation.proceed();
        System.out.println(">> Done\n");
        return proceed;
    }
}
